class NameGen:
    def __init__(self):
        self.nameSet = set()

    def NameCheck(self,name):
        #print self.nameSet, name
        assert name not in self.nameSet, r"name:'%s' has existed"%(name)
        self.nameSet.add(name)
        return name